find and replace subword in word python regex

25

result = re.sub(r"Pulp Fiction", "Forrest Gump", text)

Comments

Submit
0 Comments